<{if $block.img_size == 0}>

  <{*<!-- List -->*}>
  <{if $block.order==2}><ol><{else}><ul><{/if}>
    <{foreach item=item key=count from=$block.items}>
      <li>
        <a href="<{$block.mod_url}>/index.php?lid=<{$item.lid}>" title="<{$item.title_full}>"><{$item.title}></a>
        <{if $block.order==2}>[<{$item.clicks}>]<{/if}>
        (<{$item.regdate}>)
      </li>
    <{/foreach}>
  <{if $block.order==2}></ol><{else}></ul><{/if}>

<{else}>

  <{if $block.js_view == 1}>

    <{*<!-- JS cycle -->*}>
    <table border="0" width="100%"><tr><td id="<{$block.dirname}>_slide_td">
    <div id="<{$block.dirname}>_slide" class="pics">
      <{foreach item=item key=count from=$block.items}>
        <a href="<{$block.mod_url}>/index.php?lid=<{$item.lid}>" title="<{$item.title_full}>">
          <{if $item.IsAdult && !$block.ma_age}>
            <{if $block.img_size_no >=3}>
              <img src="<{$block.mod_url}>/images/warning40.gif" />
            <{else}>
              <img src="<{$block.mod_url}>/images/warning90.gif" />
            <{/if}>
          <{elseif $item.w == 1 && $item.h == 1}>
            <{if $block.img_size_no >=3}>
              <img src="<{$block.mod_url}>/images/noimage40.gif" style="padding:<{if $block.img_size_no==3}>70<{elseif $block.img_size_no==4}>45<{elseif $block.img_size_no==5}>27<{/if}>px;" />
            <{else}>
              <img src="<{$block.mod_url}>/images/noimage90.gif" style="padding:215px;" />
            <{/if}>
          <{else}>
            <img src="<{$item.MediumImage}>" style="padding:<{$item.padding_h}>px <{$item.padding_w}>px;" />
          <{/if}>
        </a>
      <{/foreach}>
    </div>
    </td></tr></table>
    <style type="text/css">
    #<{$block.dirname}>_slide { height:<{$block.img_size+20}>px; width:<{$block.img_size+20}>px; margin:auto; }
    #<{$block.dirname}>_slide img { margin:auto; }
    #<{$block.dirname}>_slide_td { padding:8px; text-align:center; vertical-align:middle; }
    </style>
    <script src="http://www.google.com/jsapi"></script>
    <script type="text/javascript">google.load("jquery", "1");</script>
    <script type="text/javascript" src="<{$block.mod_url}>/js/jquery.cycle.all.js"></script>
    <script type="text/javascript">
      // jQuery.noConflict();
      $('#<{$block.dirname}>_slide').cycle({fx:'<{$block.slide_type}>'}); // http://www.malsup.com/jquery/cycle/
    </script>

  <{elseif $block.js_view == 2}>

    <{*<!-- JS carousel -->*}>
    <table border="0"><tr>
      <td class="carl_td" id="<{$block.dirname}>_left_td"><button class="<{$block.dirname}>_prev">&lt;</button></td>
      <td class="carl_td" id="<{$block.dirname}>_mid_td">
        <div class="<{$block.dirname}>_carousel">
          <ul>
            <{foreach item=item key=count from=$block.items}>
              <li><a href="<{$block.mod_url}>/index.php?lid=<{$item.lid}>" title="<{$item.title_full}>">
                <{if $item.IsAdult && !$block.ma_age}>
                  <{if $block.img_size_no >=3}>
                    <img src="<{$block.mod_url}>/images/warning40.gif" />
                  <{else}>
                    <img src="<{$block.mod_url}>/images/warning90.gif" />
                  <{/if}>
                <{elseif $item.w == 1 && $item.h == 1}>
                  <{if $block.img_size_no >=3}>
                    <img src="<{$block.mod_url}>/images/noimage40.gif" style="padding:<{if $block.img_size_no==3}>70<{elseif $block.img_size_no==4}>45<{elseif $block.img_size_no==5}>27<{/if}>px;" />
                  <{else}>
                    <img src="<{$block.mod_url}>/images/noimage90.gif" style="padding:215px;" />
                  <{/if}>
                <{else}>
                  <img src="<{$item.MediumImage}>" style="padding:<{$item.padding_h}>px <{$item.padding_w}>px;" />
                <{/if}>
              </a></li>
            <{/foreach}>
          </ul>
        </div>
      </td>
      <td class="carl_td" id="<{$block.dirname}>_right_td"><button class="<{$block.dirname}>_next">&gt;</button></td>
    </tr></td></table>

    <script src="http://www.google.com/jsapi"></script>
    <script type="text/javascript">google.load("jquery", "1");</script>
    <script type="text/javascript" src="<{$block.mod_url}>/js/jcarousellite.js"></script>
    <script type="text/javascript">
      //jQuery.noConflict();
      $(function() { // http://www.gmarwaha.com/jquery/jcarousellite/
        $(".<{$block.dirname}>_carousel").jCarouselLite({ btnNext:".<{$block.dirname}>_next", btnPrev:".<{$block.dirname}>_prev", visible:3, vertical:false });
      });
    </script>
    <style type="text/css">
    td#<{$block.dirname}>_left_td, td#<{$block.dirname}>_right_td { width:<{if $block.img_size_no<2}>0<{elseif $block.img_size_no==3}>100<{elseif $block.img_size_no==4}>140<{elseif $block.img_size_no==5}>180<{/if}>px; }
    td#<{$block.dirname}>_left_td { text-align:right; }
    td#<{$block.dirname}>_right_td { text-align:left; }
    .carl_td { text-align:center; vertical-align:middle; }
    </style>

  <{else}>

    <{*<!-- Table Images -->*}>
    <table width='100%' cellspacing='0' cellpadding='0' border='0'>
      <tr>
        <{foreach item=item key=count from=$block.items}>
          <td style='text-align:center;vertical-align:bottom;margin:0px;padding:5px 0px;width:<{$block.width}>%;'>
            <a href="<{$block.mod_url}>/index.php?lid=<{$item.lid}>" title="<{$item.title_full}>"><{$item.title}></a><br />
            <a href="<{$block.mod_url}>/index.php?lid=<{$item.lid}>" title="<{$item.title_full}>">
              <{if $item.MediumImage}>
                <{if $item.IsAdult && !$block.ma_age}>
                  <{if $block.img_size_no >=3}>
                    <img src="<{$block.mod_url}>/images/warning40.gif" />
                  <{else}>
                    <img src="<{$block.mod_url}>/images/warning90.gif" />
                  <{/if}>
                <{elseif $item.w==1 && $item.h==1}>
                  <{if $block.img_size_no >=3}>
                    <img src="<{$block.mod_url}>/images/noimage40.gif" />
                  <{else}>
                    <img src="<{$block.mod_url}>/images/noimage90.gif" />
                  <{/if}>
                <{else}>
                  <img src="<{$item.MediumImage}>" <{$item.MediumImage_h}> />
                <{/if}>
              <{else}>
                <img src="<{$block.mod_url}>/images/noimage40.gif" />
              <{/if}>
            </a>
            <br />(<{$item.regdate}>)
          </td>
          <{if $count is div by $block.cols }>
            </tr>
            <tr>
          <{/if}>
        <{/foreach}>
      </tr>
    </table>

  <{/if}>

<{/if}>

